<?php
$hostname = 'r.rdc.sae.sona.con.cn:3307';
$dbuser = 'wzy3mxx4yk';
$dbpass = 'jxh4li5xm3y4h44wmmi1y4k3x122mlwz540z04yw';
$dbname = 'app_tsbx';
$link = mysql_connect($hostname, $dbuser, $dbpass);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully<br/>';
//select db
mysql_select_db($dbname, $link) or die ('Can\'t use dbname : ' . mysql_error());
echo 'Select db '.$dbname.' successfully';
mysql_close($link);
?>